git pull
docker stop shelf
docker rm -f shelf
docker rmi -f zz/shelf
docker build -t zz/shelf .
docker run -i -t --name shelf --link mysql -d zz/shelf
docker rm -f nginx
docker run -p 0.0.0.0:80:80 -p 0.0.0.0:443:443 -v /web/nginx/config/nginx.conf:/etc/nginx/nginx.conf -v /web/nginx/log:/var/log/nginx --link mysql --name nginx --restart always -d nginx
docker container cp ../nginx/config/cert nginx:/etc/nginx
docker restart nginx
